﻿using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
//using GPS.ENTITYS;

namespace GPS.DataAccessLayer
{
    public class GPSContext : DbContext
    {
        public GPSContext() :
            base("FDBContext")
        { }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();

            modelBuilder.Conventions.Remove<OneToManyCascadeDeleteConvention>();
        }

        
        //public DbSet<DM_TINHTP> DM_TINHTP { get; set; }
        //public DbSet<DM_QUANHUYEN> DM_QUANHUYEN { get; set; }
        //public DbSet<DM_PHUONGXA> DM_PHUONGXA { get; set; }
        
    }

  
}